package com.my.design.builder;

public class TestBuilder {
    public static void main(String[] args) {
        CompanyClient client = new CompanyClient.Builder()
                .setCompanyName("百度")
                .setCompanyAddress("海定区百度大厦")
                .setCompanyRegfunds(5)
                .setmPerson("1000人以上")
                .build();
        System.out.println("构造出一个公司：" + client.toString());

        CompanyClient client2 = new CompanyClient.Builder()
                .setCompanyName("华为")
                .setCompanyAddress("海定区百度大厦")
                .setmPerson("1000人以上")
                .build();
        System.out.println("构造出一个公司：" + client2.toString());
    }
}
